//
//  SecurityUtil.h
//  suoweilai_eve
//
//  Created by TFR on 2021/12/27.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SecurityUtil : NSObject

#pragma mark - AES加密
//将string转成带密码的data
//加密后16进制输出
+(NSString*)encryptAESDataToHexString:(NSString*)string app_key:(NSString*)key ;

//加密后base64输出
+(NSString*)encryptAESDataToBase64:(NSString*)string app_key:(NSString*)key;

//将带密码的data转成string
//解密base64
+(NSString*)decryptAESStringFromBase64:(NSString *)string  app_key:(NSString*)key;

//解密16进制
+(NSString*)decryptAESStringFromHexString:(NSString *)string  app_key:(NSString*)key;
@end

NS_ASSUME_NONNULL_END
